home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc1_2_x
/
popupmen.sit
/
PopUpMenu 2.0b2
/
card_4952.txt
< prev
next >
Wrap
Text File
|
1989-09-13
|
2KB
|
91 lines
-- card: 4952 from stack: in.0b2
-- bmap block id: 0
-- flags: 4000
-- background id: 3155
-- name:
----- HyperTalk script -----
-----------------------------------------------------------------------
-- openCard
-----------------------------------------------------------------------
on openCard
global style, styles, styleItems
-- show card field "styles"
put card field "styles" into styles
put "Plain,Bold,Italic,Underline,Outline,Shadow" into styleItems
put 1 into style
set textStyle of card button "Example" to item style of styleItems
pass openCard
end openCard
-----------------------------------------------------------------------
-- doPopUp
-----------------------------------------------------------------------
on doPopUp
global style, styles, styleItems
get PopUpMenu( styles, style )
if it is not empty then
put it into style
set the textStyle of the target to item it of styleItems
end if
end doPopUp
-- part 1 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=192 top=168 right=190 bottom=292
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Example
----- HyperTalk script -----
on mouseDown
doPopUp
end mouseDown
-- part 2 (field)
-- low flags: 80
-- high flags: 0004
-- rect: left=169 top=227 right=329 bottom=256
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Styles
-- part contents for background part 10
----- text -----
Styled Items
To set an itemΓÇÖs style prefix the text of the item with either
    “<B” for bold,
    “<I” for italic,
    “<U” for underline,
    “<O” for outline, or
    “<S” for shadow.
-- part contents for card part 2
----- text -----
Plain
<BBold
<IItalic
<UUnderline
<OOutline
<SShadow